package cn.aiyuan;

import cn.hutool.core.collection.CollUtil;
import cn.hutool.core.collection.IterUtil;
import cn.hutool.extra.tokenizer.Result;
import cn.hutool.extra.tokenizer.TokenizerEngine;
import cn.hutool.extra.tokenizer.TokenizerUtil;
import cn.hutool.extra.tokenizer.Word;

import java.util.Iterator;

/**
 * @author wangyuan
 * @date 2021/8/5
 */
public class WordTest {

    public static void main(String[] args) {


        //String s = "";
        //String[] split = s.split("\n");
        //for (String s1 : split) {
        //    String[] split1 = s1.split("\t");
        //    System.out.println("update alarm_status set status = 2 where alarm_key = '"+split1[0]+"' and tag = '"+split1[1]+"';");
        //}
        //System.out.println(split.length);

        String a = "alarm_stargazer_ops_284_49wgq4\n" +
                "alarm_stargazer_ops_283_h2ir1n\n" +
                "alarm_stargazer_ops_282_pz0iw0\n" +
                "alarm_stargazer_ops_281_dqmtoe\n" +
                "alarm_stargazer_ops_280_fpwz4m\n" +
                "alarm_stargazer_ops_279_0oa3kr\n" +
                "alarm_stargazer_ops_278_r0sogn\n" +
                "alarm_stargazer_ops_277_ambmp7\n" +
                "alarm_stargazer_ops_276_30yu0o\n" +
                "alarm_stargazer_ops_275_rov293\n" +
                "alarm_stargazer_ops_274_kuc0a3\n" +
                "alarm_stargazer_ops_273_bx9kzg\n" +
                "alarm_stargazer_ops_272_n1kg1l\n" +
                "alarm_stargazer_ops_271_0t65yv\n" +
                "alarm_stargazer_ops_270_ooiczp\n" +
                "alarm_stargazer_ops_269_ylhzox\n" +
                "alarm_stargazer_ops_268_wdrtxb\n" +
                "alarm_stargazer_ops_267_rlhfwb\n" +
                "alarm_stargazer_ops_266_87dl5z\n" +
                "alarm_stargazer_ops_265_h37tuw\n" +
                "alarm_stargazer_ops_264_gn3nxw\n" +
                "alarm_stargazer_ops_263_8yd1vu\n" +
                "alarm_stargazer_ops_262_ufwiyg\n" +
                "alarm_stargazer_ops_261_9tih7e\n" +
                "alarm_stargazer_ops_260_rvb4sa\n" +
                "alarm_stargazer_ops_259_tigeen\n" +
                "alarm_stargazer_ops_258_sfzxqq\n" +
                "alarm_stargazer_ops_257_7v987i\n" +
                "alarm_stargazer_ops_256_lawngi\n" +
                "alarm_stargazer_ops_255_qv218u\n" +
                "alarm_stargazer_ops_254_0mdpfo";

        String[] split1 = a.split("\n");
        for (String s1 : split1) {
            System.out.println("\""+s1+"\",");
        }
    }
}
